//
//  BaseViewController.swift
//  WeiBoOfSwift
//
//  Created by aven wu on 20/04/2018.
//  Copyright © 2018 GML. All rights reserved.
//

import UIKit

class VistorBaseViewController: UIViewController,VistorViewDelegate {
    //MARK: VistorViewDelegate
    func loginBtnClick() {
        
    }
    
    func registerBtnClick() {
        
    }
    
    //MARK:初始化未登录View
    var userlogin = UserOauthModel.userLogin()
    var vistorView:VistorView?
    
    override func loadView() {
        userlogin ? super.loadView():setUpVisitorView()
        
    }
    func  setUpVisitorView() -> Void {
        
        let customView = VistorView()
        customView.delegate = self
        view = customView
        vistorView  = customView
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
